package com.jindianjichi.club.gateway;

import cn.dev33.satoken.SaManager;
import cn.dev33.satoken.dao.SaTokenDao;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@Slf4j
@SpringBootApplication
@ComponentScan("com.jindianjichi")
public class GatewayApplication {
    public static void main(String[] args) {
     SpringApplication.run(GatewayApplication.class);

        System.out.println("\n启动成功：Sa-Token配置如下：" + SaManager.getConfig());
        SaTokenDao saTokenDao = SaManager.getSaTokenDao();
        saTokenDao.set("name", "value", 100000);
        log.info("name:{}", saTokenDao.get("name"));
    }

}
